<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <g:set var="entityName" value="${message(code: 'estate.label', default: 'Estate')}" />
    <title>价款人预警</title>
    <style>
    .contact-stat{
        padding: 8px 0px;
        text-align: center;
    }
    .contact-stat span{
        font-size: 13px;
        color: #88898c;
        margin-bottom: 10px;
    }
    .contact-stat strong{
        font-size: 13px;
        word-wrap: break-word;
    }
    .nav-tabs{
        border-bottom: none;
    }
    .hpanel > .panel-footer, .hpanel > .panel-section{
        background: #f9f9f9;
    }

    .newFontSize{
        font-size: 12px;
    }
    table>tbody>tr>td, table>tbody>tr>th,.table>tfoot>tr>td, table>tfoot>tr>th, table>thead>tr>td, table>thead>tr>th{
        padding: 8px;
        line-height: 1.42857143;
    }
    .tdColor{
        color: red !important;
    }

    </style>
</head>
<body class="fixed-navbar fixed-sidebar">

<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>CINDATA PLS</li>
                    <li class="active">
                        <span>预警</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                价款人预警
            </h2>
        </div>
    </div>
</div>

<div class="content animate-panel">
    <div class="row">
        <g:form method="POST" action="riskWarningContact" class="form-horizontal" role="form" id="form">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    <div class="panel-tools">
                        <button class="btn btn-primary btn-xs" type="submit" id="searchBtn"><i class="fa fa-search"></i> 查询</button>
                        <button class="btn btn-warning2 btn-xs" type="button" id="resetBtn">
                            <i class="fa fa-times"></i> 重置</button>
                    </div>
                    查询
                </div>
                 <div class="panel-body seach-group" id="bug1">
                     <div class="row">
                        <div class="form-group col-sm-3">
                            <label  class="col-sm-3 control-label">预警编号</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="serialNumber" id="serialNumber" value="${params?.serialNumber}" placeholder="请输入预警编号">
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label  class="col-sm-3 control-label">借款人</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="fullName" id="fullName" value="${params?.fullName}" placeholder="请输入借款人">
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label  class="col-sm-3 control-label">证件号</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="idNumber" id="idNumber" value="${params?.idNumber}" placeholder="请输入证件号">
                            </div>
                        </div>
                        <div class="form-group col-sm-3">
                            <label  class="col-sm-3 control-label">手机号</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="cellphone" id="cellphone" value="${params?.cellphone}" placeholder="请输入手机号">
                            </div>
                        </div>
                    </div>
                </div>
            </g:form>
        </div>
    </div>

    <div class="row">
        <div class="hpanel hgreen">
            <div class="panel-heading">
                <div class="panel-tools">
                    <a class="showhide"><i class="fa fa-chevron-up"></i></a>
                </div>
                借款人预警
            </div>
            <div class="panel-body no-padding">
                <div class="table-responsive">
                    <table cellpadding="1" cellspacing="1" class="table table-striped table-bordered table-hover text-center" id="estateTable">
                        <thead>
                        <tr>
                            <g:sortableColumn property="serialNumber" title="预警编号"  class=" text-center" params="${params}"/>
                            <g:sortableColumn property="fullName" title="借款人" class=" text-center tdColor" params="${params}"/>
                            <g:sortableColumn property="idNumber" title="证件号" class=" text-center tdColor" params="${params}"/>
                            <g:sortableColumn property="cellphone" title="手机号" class=" text-center tdColor" params="${params}"/>
                            <g:sortableColumn property="address" title="地址" class=" text-center tdColor" params="${params}"/>
                            <g:sortableColumn property="phoneStartTime" title="手机号开卡时间"  class=" col-md-1 text-center" params="${params}"/>
                            <g:sortableColumn property="phoneEndTime" title="手机号销号时间"  class=" col-md-1 text-center" params="${params}"/>
                            <g:sortableColumn property="phoneOnLineStatus" title="在网状态"  class=" col-md-1 text-center" params="${params}"/>
                            <g:sortableColumn property="phoneIsInUse" title="是否停机" class="text-center" params="${params}"/>
                            <g:sortableColumn property="creditScore" title="征信评分" class=" text-center tdColor" params="${params}"/>
                            <g:sortableColumn property="workflow" title="工作流"   class="text-center tdColor" params="${params}"/>
                        </tr>
                        </thead>
                        <tbody>
                        <g:each in="${riskWarningList}">
                        <tr>
                            <td><g:link style="color: #3498DB" action="riskWarningContactShow" id="${it?.id}" params="${params}" class="firstTd">${it?.serialNumber?it?.serialNumber:'-'}</g:link></td>
                            <td>${it?.contact?.fullName?:'-'}</td>
                            <td>${it?.contact?.idNumber?:'-'}</td>
                            <td>${it?.contact?.cellphone?:'-'}</td>
                            <td>${it?.contact?.address?:'-'}</td>
                            <td>${it?.contact?.phoneStartTime?:'-'}</td>
                            <td>${it?.contact?.phoneEndTime?:'-'}</td>
                            <td>${it?.contact?.phoneOnLineStatus?:'-'}</td>
                            <td>${it?.contact?.phoneIsInUse?'否':'是'}</td>
                            <td>${it?.contact?.creditScore?:'-'}</td>
                            <td>${it?.workflow?.name?:'-'}</td>
                        </tr>
                        </g:each>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="panel-footer">
                <div class="pagination">
                    <g:paginate action="riskWarningContact" total="${riskWarningCount ?: 0}" params="${params}"/>
                </div>
            </div>
        </div>
    </div>

</div>

<script>
    //条件重置
    $("#resetBtn").click(function () {
        $("#serialNumber").val("");
        $("#fullName").val("");
        $("#cellphone").val("");
        $("#idNumber").val("");
    });
</script>
</body>
</html>
